package com.greatwqs.wmall.user.provider.model.vo;

import com.greatwqs.wmall.user.provider.model.po.User;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wang-qingsong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVo implements Serializable {
    private Long userId;

    private String loginId;

    private String userName;

    private String phoneNo;

    private String emailAdd;

    private String userImg;

    private Integer userStatus;

    private Date createTime;

    public UserVo(User user) {
        this.userId = user.getUserId();
        this.loginId = user.getLoginId();
        this.userName = user.getUserName();
        this.phoneNo = user.getPhoneNo();
        this.emailAdd = user.getEmailAdd();
        this.userImg = user.getUserImg();
        this.userStatus = user.getUserStatus();
        this.createTime = user.getCreateTime();
    }
}
